package com.jwsoft.manager.core.dao.model;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 省报名审核专库同步情况表
 *
 * @author chenzh
 * @since 2023-07-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("edu_sync_zj_delete")
@Schema(name = "EduSyncZjDelete", title = "省报名审核专库同步情况表", description = "省报名审核专库同步情况表实体类")
public class EduSyncZjDelete extends Model<EduSyncZjDelete> {

    private static final long serialVersionUID = 1L;

    @Schema(name = "zjDeleteId", description = "省报名专库同步删除id")
    @TableId(value = "zj_delete_id", type = IdType.ASSIGN_ID)
    private String zjDeleteId;

    @Schema(name = "theYear", description = "年份")
    @TableField(value = "the_year")
    private Integer theYear;

    @Schema(name = "stage", description = "学段：576：小学 577：初中")
    @TableField(value = "stage")
    private String stage;
    @Schema(name = "name", description = "姓名")
    @TableField(value = "name")
    private String name;
    @Schema(name = "idType", description = "证件类型：31：身份证32：军官证33：外国人护照35：港澳通行证36：台湾通行证 37：港澳台居民居住证")
    @TableField(value = "id_type")
    private String idType;

    @Schema(name = "idNumber", description = "证件号码")
    @TableField(value = "id_number")
    private String idNumber;

    @Schema(name = "deleteType", description = "删除类型 1报名表 2 审核表 3 录取表")
    @TableField(value = "delete_type")
    private String deleteType;

    @Schema(name = "deleteId", description = "删除的报名专库id")
    @TableField(value = "delete_id")
    private Long deleteId;

    @Schema(name = "applyCountyCode", description = "报名所在区县码")
    @TableField(value = "apply_county_code")
    private String applyCountyCode;

    @Schema(name = "syncStatus", description = "同步状态 0 待同步 1 同步成功 2 同步失败")
    @TableField(value = "sync_status")
    private String syncStatus;

    @Schema(name = "syncMsg", description = "同步描述")
    @TableField(value = "sync_msg")
    private String syncMsg;

    @Schema(name = "syncTime", description = "同步时间")
    @TableField(value = "sync_time")
    private Date syncTime;

    @Schema(name = "del", description = "0,未删除,1,已删除")
    @TableField(value = "del", fill = FieldFill.INSERT, updateStrategy = FieldStrategy.NOT_NULL)
    @TableLogic
    private String del;

    @Schema(name = "createName", description = "创建人")
    @TableField(value = "create_name", fill = FieldFill.INSERT, updateStrategy = FieldStrategy.NOT_NULL)
    private String createName;

    @Schema(name = "createTime", description = "创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT, updateStrategy = FieldStrategy.NOT_NULL)
    private Date createTime;

    @Schema(name = "updateName", description = "修改人")
    @TableField(value = "update_name", fill = FieldFill.INSERT_UPDATE, updateStrategy = FieldStrategy.NOT_NULL)
    private String updateName;

    @Schema(name = "updateTime", description = "更新时间")
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE, updateStrategy = FieldStrategy.NOT_NULL)
    private Date updateTime;

    @Override
    public Serializable pkVal() {
        return this.zjDeleteId;
    }
}
